package com.augn.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class PostEvaluateFrom implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer postEvaFromId; //帖子评论从表编号
    private Integer toUserId; //被评论者编号
    @TableField(exist = false)
    private String toUserName; //被回复用户名字
    private Integer postEvaMainId; //帖子评论编号
    private Integer userId; //用户编号
    @TableField(exist = false)
    private String userName; //用户名字
    @TableField(exist = false)
    private String userImage; //用户头像

    private String detail; //评论内容

    @TableField(fill = FieldFill.INSERT)
    private String createBy;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateBy;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
